package com.ruoyi.youtian.mapper;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.youtian.domain.TEarlyWarningRecordDetail;

/**
 * 触发预警记录详情Mapper接口
 * 
 * @author ruoyi
 * @date 2022-10-17
 */
public interface TEarlyWarningRecordDetailMapper 
{
    /**
     * 查询触发预警记录详情
     * 
     * @param id 触发预警记录详情主键
     * @return 触发预警记录详情
     */
    public TEarlyWarningRecordDetail selectTEarlyWarningRecordDetailById(Long id);

    /**
     * 查询触发预警记录详情列表
     * 
     * @param tEarlyWarningRecordDetail 触发预警记录详情
     * @return 触发预警记录详情集合
     */
    @DataScope(deptAlias = "d")
    public List<TEarlyWarningRecordDetail> selectTEarlyWarningRecordDetailList(TEarlyWarningRecordDetail tEarlyWarningRecordDetail);

    /**
     * 新增触发预警记录详情
     * 
     * @param tEarlyWarningRecordDetail 触发预警记录详情
     * @return 结果
     */
    public int insertTEarlyWarningRecordDetail(TEarlyWarningRecordDetail tEarlyWarningRecordDetail);

    /**
     * 修改触发预警记录详情
     * 
     * @param tEarlyWarningRecordDetail 触发预警记录详情
     * @return 结果
     */
    public int updateTEarlyWarningRecordDetail(TEarlyWarningRecordDetail tEarlyWarningRecordDetail);

    /**
     * 删除触发预警记录详情
     * 
     * @param id 触发预警记录详情主键
     * @return 结果
     */
    public int deleteTEarlyWarningRecordDetailById(Long id);

    /**
     * 批量删除触发预警记录详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTEarlyWarningRecordDetailByIds(String[] ids);
}
